import random

lst=[item for item in range(1,10)]
print(lst)
lst=[item**2 for item in range(1,10)]
print(lst)

lst=[random.randint(1,100) for i in range(1,10)]
print(lst)

lst=[item for item in range(1,10) if item%2==0]
print(lst)

#生成二维列表
lst2=[[j for j in range(5)] for i in range(4)]
print(lst2)